//
//  UIViewController+Category.m
//  LNUniversal
//
//  Created by liu nian on 15/5/25.
//  Copyright (c) 2015年 Liu Nian site:http://iliunian.com. All rights reserved.
//

#import "UIViewController+Category.h"
#import "MBProgressHUD+Category.h"

@implementation UIViewController (Category)
#pragma mark
- (void)showLoadingText:(NSString *)text{
    [MBProgressHUD showMessag:text toView:self.view];
}
- (void)showLoading{
    [MBProgressHUD showHUDAddedTo:self.view animated:YES];
}
- (void)hidLoading{
    [MBProgressHUD hideAllHUDsForView:self.view animated:YES];
}
- (void)showError:(NSString *)error{
    [MBProgressHUD showError:error toView:self.view];
}
- (void)showSuccess:(NSString *)success{
    [MBProgressHUD showSuccess:success toView:self.view];
}
@end
